<template>
  <div id="app">
    <el-container class="app-container">
      <el-aside width="200px" class="sidebar">
        <Sidebar />
      </el-aside>
      <el-container>
        <el-header class="header">
          <Header />
        </el-header>
        <el-main class="main-content">
          <router-view />
        </el-main>
        <el-footer class="player-bar">
          <PlayerBar />
        </el-footer>
      </el-container>
    </el-container>
  </div>
</template>

<script setup lang="ts">
import Sidebar from '@/components/Sidebar.vue'
import Header from '@/components/Header.vue'
import PlayerBar from '@/components/PlayerBar.vue'
</script>

<style scoped>
.app-container {
  height: 100vh;
}

.sidebar {
  background-color: #f5f5f5;
  border-right: 1px solid #e4e7ed;
}

.header {
  background-color: #fff;
  border-bottom: 1px solid #e4e7ed;
  padding: 0 20px;
  display: flex;
  align-items: center;
}

.main-content {
  background-color: #fafafa;
  padding: 0;
}

.player-bar {
  background-color: #fff;
  border-top: 1px solid #e4e7ed;
  height: 80px;
  padding: 0;
}
</style>
